<?php
/**
 * Created by PhpStorm.
 * User: change
 * Date: 2017/1/18
 * Time: 15:31
 * 身体部位
 */

namespace Admin\Model;


use Base\Model\BaseModel;

class BodyinfoModel extends BaseModel
{
    protected $_validate = array(
        array('name', 'require', '名称必须填写'),
        array('name', '', '身体部位已存在', 0, 'unique', 3),
        array('name','/^[\x7f-\xff]+$/', '身体部位名称不符合规则！',3),
    );
    protected $_auto = array(
        array('status', '1'),
    );
}